package com.youmu.sichuansfc.service.impl;

import com.youmu.sichuansfc.dao.FundManagerPartnerDao;
import com.youmu.sichuansfc.domain.YoumuFundManagerPartner;
import com.youmu.sichuansfc.service.FundManagerPartnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.transaction.Transactional;
import java.util.List;


@Service
@Transactional
public class FundManagerPartnerServiceImpl implements FundManagerPartnerService {

    @Autowired
    FundManagerPartnerDao fundManagerPartnerDao;

    @Override
    public List<YoumuFundManagerPartner> findByManagerId(Long managerId) {
        return fundManagerPartnerDao.findByManagerId(managerId);
    }

    @Override
    public YoumuFundManagerPartner upload(YoumuFundManagerPartner youmuFundManagerPartner) {
        return fundManagerPartnerDao.upload(youmuFundManagerPartner);
    }
}
